package com.guoyw.dubbo.example.serviceImpl;

import com.guoyw.dubbo.member.entity.User;
import com.guoyw.dubbo.member.service.UserService;

import java.lang.management.ManagementFactory;

/**
 * author: guoyw
 * create: 2020-09-11 17:23
 **/

public class UserServiceImpl implements UserService{
  
  
  @Override
  public User getUser(Integer id){
    User user = new User();
    user.setId(id);
    user.setName("guoyw:" + ManagementFactory.getRuntimeMXBean().getName());
    user.setSex("man");
    return user;
  }
}
